Command
interface Command
Defines a contract for representing a command to be executed within the player system.
A command typically consists of a name that identifies the action to be performed, and an optional argument that provides additional context or data for that action. Implementations of this interface are used to encapsulate commands that can be processed by various components of the player.
For example, a command might be used to trigger an action like "PLAY_VIDEO" with an argument specifying the video's URL, or "SHOW_MESSAGE" with the message text as the argument.